<%@ page language="java" import="java.util.*,service.*,model.*,tools.*" pageEncoding="UTF-8"%>
<%

	String viewerid = (String)request.getAttribute("viewerid");
	String ownerid = (String)request.getAttribute("ownerid");
	String domain = (String)request.getAttribute("domain");
	
	boolean self = viewerid.equals(ownerid);
	SaleData sdata = FriendSale.getDataObj(ownerid);
	List<History> history = sdata.getHistory();
	
	for(int i = history.size()-1;i>=0;i--){
		History h = history.get(i);
	//for(History h : history){
%>
				<div class="p7_0">
					<div class="l"><img src="http://sirius-gadgetlib.googlecode.com/svn/trunk/images/che.gif"></div>
					<div class="histy_mx">
						<div class="l w220">
							<%=h.displayText(viewerid) %>
						</div>
						<div class="gw13 tar" style="font-size: 9px;"><%=h.displayTime() %></div>
						<div class="c"></div>
					</div>
					<div class="c"></div>
				</div>
				
<%
}
if(history.size() == 0){
	out.println("没有买卖历史");
}
%>
